package com.carlinfo.userscenter.stu.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.carlinfo.common.util.PageInfoUtil;
import com.carlinfo.userscenter.stu.pojo.Answer;
import com.carlinfo.userscenter.stu.pojo.Level;
import com.carlinfo.userscenter.stu.pojo.Question;

public interface IQuestionService
{
	/*----------------------问题操作开始----------------------------*/
	/**
	 * 保存一条数据
	 * @param question
	 * @return
	 */
	JSONObject saveOneQuestionService(Question question);
	
	/**
	 * 查询多条数据
	 * @param condMap
	 * @return
	 */
	List<Question> selectListQuestionService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	
	/**
	 * 查询一条数据
	 * @param condMap
	 * @return
	 */
	Question selectOneQuestionService(Map<String, Object> condMap);
	
	/**
	 * 更新一条数据
	 * @param condMap
	 * @return
	 */
	JSONObject updateOneQuestionService(Question question);
	
	/*
	 *删除一条数据
	 */
	JSONObject deleteOneQuestionService(Map<String, Object> condMap);
	/*----------------------问题操作结束----------------------------*/
	
	/*----------------------答案操作开始----------------------------*/
	/**
	 * 保存一条数据
	 * @param answer
	 * @return
	 */
	JSONObject saveOneAnswerService(Answer answer);
	
	/**
	 * 查询多条数据
	 * @param condMap
	 * @return
	 */
	List<Answer> selectListAnswerService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	
	/**
	 * 查询一条数据
	 * @param condMap
	 * @return
	 */
	Answer selectOneAnswerService(Map<String, Object> condMap);
	
	/**
	 * 更新一条数据
	 * @param condMap
	 * @return
	 */
	JSONObject updateOneAnswerService(Answer answer);
	
	/*
	 *删除一条数据
	 */
	JSONObject deleteOneAnswerService(Map<String, Object> condMap);
	/*----------------------等级操作开始----------------------------*/
}
